package com.lnyt.service;

import com.alibaba.fastjson.JSONObject;
import okhttp3.OkHttpClient;

import java.util.Observable;
import java.util.Observer;


public interface TicketReqService extends Observer {
    // 初始化
    public void initService();

    // 登录初始化
    public String signInit(OkHttpClient okHttpClient);

    // 登录检查
    public String signUamtk(OkHttpClient okHttpClient);

    // 验证码
    public String signCaptch(OkHttpClient okHttpClient);

    // 验证码校验
    public String signCaptchCheck(JSONObject reqData, OkHttpClient okHttpClient);

    // 登录
    public String signLogin(JSONObject reqData, OkHttpClient okHttpClient);

    // 握手
    public String signUamauthClient(JSONObject reqData, OkHttpClient okHttpClient);

    // 查询乘客
    public String queryPassenger(JSONObject reqData, OkHttpClient okHttpClient);

    // 查询未完成订单
    public String queryNoComplete(JSONObject reqData, OkHttpClient okHttpClient);

    // 查询车次
    public String queryTicket(JSONObject reqData, OkHttpClient okHttpClient);

    // 校验用户
    public String orderCheckUser(JSONObject reqData, OkHttpClient okHttpClient);

    // 提交车次
    public String orderSubmit(JSONObject reqData, OkHttpClient okHttpClient);

    // 初始化订单
    public String orderInitDc(JSONObject reqData, OkHttpClient okHttpClient);

    // 校验订单
    public String orderCheckInfo(JSONObject reqData, OkHttpClient okHttpClient);

    // 确认订单
    public String orderQueueCount(JSONObject reqData, OkHttpClient okHttpClient);

    // 提交订单
    public String orderConfirmSingle(JSONObject reqData, OkHttpClient okHttpClient);

    // 排队查询
    public String orderWaitTime(JSONObject reqData, OkHttpClient okHttpClient);

    // 查询订单
    public String orderDcQueue(JSONObject reqData, OkHttpClient okHttpClient);

    // 生成订单
    public String creatOrderList(JSONObject reqData, OkHttpClient okHttpClient);

    // 查询订单
    public String queryOrderList(JSONObject reqData, OkHttpClient okHttpClient);

    // 测试函数
    public void testOrder(OkHttpClient okHttpClient);
}
